<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<div>
    	<div class="left" style="padding-left: 25px">
	<div class="easyui-accordion fs" style="width:90%;height:250px;">
		<div title="正常练习" fit="true" data-options="iconCls:'icon-ok',collapsible:true" style="overflow:auto;padding:10px;">
		  <ul>
		  	<c:forEach items="${newclas}" step="1" begin="0" end="9" var="c"  varStatus="status">
                <li class="li_practice" style="padding-bottom: 5px;">
                	<span class="two">
                		<span title="到期时间">${newcts[status.index].endTime}</span> 
                		<input type="hidden" value="${newcts[status.index].id}">
                		<a class="marking" href="#" title="阅卷和查看成绩"> [批改]</a>
                		<input type="hidden" value="${c.id}">
                	</span>
                	<input type="hidden" value="${newcts[status.index].id}">
                    <a class="seenewwork" href="#" title="查看试卷">${c.className}--${newcts[status.index].name}</a>
                        		「/${c.className}/」
                </li>
          	</c:forEach>
        </ul>
		</div>
	</div>
	
	<div class="easyui-accordion fs" style="width:90%;height:250px;">
		<div title="历史练习" data-options="iconCls:'icon-ok'" style="overflow:auto;padding:10px;">
			<ul>
				<c:forEach items="${pastclas}" step="1" begin="0" end="9" var="c"  varStatus="status">
		    			<li class="li_practice" style="padding-bottom: 5px">
				    		<span class="two">
				    			<span title="到期时间">${pastcts[status.index].endTime}</span> 
				    			<input type="hidden" value="${pastcts[status.index].id}">&nbsp;&nbsp;
				    			<a class="marking" href="#" title="阅卷"><img src="http://gson.cn/imgs/view.png"> 结果</a>
				    			<input type="hidden" value="${c.id}">
				    		</span>
				    	<input type="hidden" value="${pastcts[status.index].id}">
	                    <a class="seenewwork" href="#" title="查看试卷">${c.className}--${pastcts[status.index].name}</a>
	                      	  「/${c.className}/」
	                </li>
                </c:forEach>
	    		</ul>
		</div>
	</div>
    	</div>
    	<div class="right" style="padding-right: 6px">
	    	<div class="easyui-accordion fs" style="width:90%;height:250px;">
				<div title="未批改练习" data-options="iconCls:'icon-ok'" style="overflow:auto;padding:10px;">
						<ul>
							<c:forEach items="${cts}" var="c" begin="0" end="10" step="1"  varStatus="status">
							<c:choose>
								<c:when test="${count[status.index] == 0}">
								</c:when>
								<c:otherwise>	
									 <li class="li_ask2 " style="display: block;padding-bottom: 8px">
							    		<span class="two">
							    			<input type="hidden" value="${c.id}">
							    			<a class="marking"  href="#" title="马上批改作业">
							    				<font color="red"><b>${count[status.index]}</b></font>份待批改 
							    			</a>
							    			<input type="hidden" value="${clas[status.index].id}">
							    		</span>
						     	 ${fn:substring(c.startTime,5,10)}：${c.emp.name}在<a href="#">『${clas[status.index].className}』</a>布置了作业《${c.name}》
							          </li>
								</c:otherwise>
							</c:choose>
					         
		            		</c:forEach>
			    		</ul>
				</div>
			</div>
			<div class="easyui-accordion fs" style="width:90%;height:250px;">
				<div title="最新提交" data-options="iconCls:'icon-ok'" style="overflow:auto;padding:10px;">
					<ul>
						<c:forEach items="${jl}" begin="0" step="1" end="9" var="j" varStatus="states">
				    		<li class="li_ask2" style="padding-bottom: 8px">
						    		<span class="two">
						    			${j.savaWordtime}
						    			<input type="hidden" value="${j.work.id}">
						    			<a class="marking" href="#" title="查看"> [查看]</a>
						    			<input type="hidden" value="${classes[states.index].id}">
						    		</span>
				                <a target="_blank" href="#">${j.student.name}</a>
				               	 提交了作业《${j.work.name}》
				            </li>
		                </c:forEach>
			    	</ul>
				</div>
			</div>
    	</div>
 	</div>
<script type="text/javascript" src="public/js/marking_homework.js"></script>
